'use strict';

function get_union(collection_a, collection_b) {
  let result = collection_a;
  for(let i=0;i<collection_b.length;i++){
    if(collection_a.indexOf(collection_b[i])===-1){
      result.push(collection_b[i]);
    }
  }
  console.log(result);
  return result;
}
get_union([10, 27, 28, 19, 5], [5, 78, 28, 19, 23]);
module.exports = get_union;

